package org.ly.uap.client.util;

import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletResponse;

public class TransNameFilter extends HttpServlet
        implements Filter {
    private static final long serialVersionUID = 1L;

    public void init(FilterConfig arg0)
            throws ServletException {
    }

    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
            throws IOException, ServletException {
        HttpServletResponse res = (HttpServletResponse) response;
        res.setHeader("P3P", "CP=CAO PSA OUR");
        if (chain != null)
            chain.doFilter(request, response);
    }

    public void destroy() {
    }
}
